import axios from '../http';

export function resetPassword(data) {
	return axios({
		url: 'user-update-pwd',
		method: 'post',
		data: {
			'old_password': data.old_password,
			'new_pwd': data.password,
			'confirm_pwd': data.new_password
		},
		headers: {
			'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
		}
	})
}